package com.qf.controller;

import com.qf.ex.CustomException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@RestController
public class TestController {

    @RequestMapping("/echo")
    public String echo(){
        if(1==1){
            throw new CustomException("自定义异常");
        }
//        System.out.println(1/0);
        return "success";
    }
}
